<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- styles here -->
    <link href="../../public/css/bootstrap.min14ed.css" rel="stylesheet">
    <link href="../../public/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../public/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="../../public/css/animate.css" rel="stylesheet">
    <link href="../../public/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../../public/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="../../public/css/plugins/jsTree/default/style.min.css" rel="stylesheet">
    <link href="../../public/css/style.min862f.css" rel="stylesheet">
    <!--<link href="../public/js/plugins/layer/skin/default/layer.css" rel="stylesheet">-->
</head>

<body>
<div id="app">
    <div class="col-sm-12" v-show="showList">

        <div id="toolbar">
            <button id="add-new" type="button" class="btn btn-primary" @click="add">
                <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                新增
        </button>
            <button id="edit" type="button" class="btn btn-primary" @click="update">
                <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
                修改
        </button>
            <button type="button" class="btn btn-primary" @click="del">
                <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                删除
        </button>
        </div>
        <table id="menuTable" data-mobile-responsive="true" data-icon-size="outline" data-search="true"></table>
    </div>

    <div v-show="!isUpdate && !showList" class="wrapper wrapper-content col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{{title}}</h3>
            </div>
            <div class="panel-body">
                <div class="col-sm-4 b-r">
                    <form role="form">
                        <div class="form-group">
                            <label>APPID</label>
                            <input data-field="id" type="text" v-model="app.appId" placeholder="APPID" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>APP名称</label>
                            <input data-field="id" type="text" v-model="app.appName" placeholder="APP名称" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>公司名称</label>
                            <input id="up-menu-name" @click="chooseUpMenu" type="text" v-model="app.company" placeholder="上级菜单" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>OEM名称</label>
                            <input data-field="id" type="text" v-model="app.oemName" placeholder="OEM名称" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>剩余实名次数</label>
                            <input data-field="id" type="text" v-model="app.lastReal" placeholder="菜单链接" class="form-control">
                        </div>

                        <div class="form-group">
                            <label>最大代理商层级</label>
                            <input data-field="id" type="number" v-model="app.maxAgentLevelType" placeholder="最大代理商层级" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>是否开启代理商创建下级</label>
                            <input data-field="name" type="text" v-model="app.openAgentLevel" placeholder="是否开启代理商创建下级" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>T1提现费率</label>
                            <input @click="chooseUpMenu" type="text" v-model="app.appT1Cash" placeholder="T1提现费率" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>D0提现费率</label>
                            <input data-field="id" type="text" v-model="app.appD0Cash" placeholder="D0提现费率" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>升级通道</label>
                            <input data-field="id" type="number" v-model="app.gradeUpAccess" placeholder="升级通道" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>提现通道</label>
                            <input data-field="id" type="number" v-model="app.appCashAccessId" placeholder="提现通道" class="form-control">
                        </div>
                        <div class="col-sm-12 text-center">
                            <a class="btn btn-primary inline" @click="saveOrUpdate"><strong>确 定</strong></a>
                            <a class="btn btn-warning inline" @click="cancel"><strong>返 回</strong></a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div v-show="isUpdate && !showList" class="wrapper wrapper-content col-sm-12" id="admin-form">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">{{title}}</h3>
            </div>
            <div class="panel-body">
                <div class="col-sm-4 b-r">
                    <form role="form">
                        <div class="form-group">
                            <label>APPID</label>
                            <input data-field="id" type="text" v-model="app.appId" placeholder="APPID" class="form-control" DISABLED>
                        </div>
                        <div class="form-group">
                            <label>APP通知</label>
                            <input data-field="id" type="text" v-model="app.advice" placeholder="APP通知" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>版本号</label>
                            <input @click="chooseUpMenu" type="text" v-model="app.version" placeholder="版本号" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>服务热线</label>
                            <input data-field="id" type="text" v-model="app.hotLine" placeholder="服务热线" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>App状态</label>
                            <br>
                            <label>
                                <input type="radio" value="1" v-model="app.appStatus" name="statement"> <i></i>禁用
                            </label>
                            <label>
                                <input type="radio" value="0" v-model="app.appStatus" name="statement"> <i></i>正常
                            </label>
                        </div>

                        <div class="form-group">
                            <label>最大代理商层级</label>
                            <input data-field="id" type="number" v-model="app.maxAgentLevelType" placeholder="最大代理商层级" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>是否开启代理商创建下级</label>
                            <input data-field="name" type="text" v-model="app.openAgentLevel" placeholder="是否开启代理商创建下级" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>T1提现费率</label>
                            <input @click="chooseUpMenu" type="text" v-model="app.appT1Cash" placeholder="T1提现费率" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>D0提现费率</label>
                            <input data-field="id" type="text" v-model="app.appD0Cash" placeholder="D0提现费率" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>升级通道</label>
                            <input data-field="id" type="number" v-model="app.gradeUpAccess" placeholder="升级通道" class="form-control">
                        </div>
                        <div class="form-group">
                            <label>提现通道</label>
                            <input data-field="id" type="number" v-model="app.appCashAccessId" placeholder="提现通道" class="form-control">
                        </div>
                        <div class="col-sm-12 text-center">
                            <a class="btn btn-primary inline" @click="saveOrUpdate"><strong>确 定</strong></a>
                            <a class="btn btn-warning inline" @click="cancel"><strong>返 回</strong></a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
    <!-- scripts here -->
    <script src="../../public/js/jquery.min.js?v=2.1.4" type="text/javascript"></script>
    <script src="../../public/js/vue.min.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/layer/layer.js" type="text/javascript"></script>
    <script src="../../public/js/bootstrap.min.js?v=3.3.6" type="text/javascript"></script>
    <script src="../../public/js/plugins/jsTree/jstree.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/bootstrap-table/bootstrap-table-obj.js" type="text/javascript"></script>
    <script src="../../public/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
    <script src="../js/app.js"></script>
</body>

</html>